<%@ page pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://www.ld.com/shield/tags" prefix="shield"%>
<%@ taglib uri="http://www.ld.com/system/tags" prefix="system"%>
<%@ page trimDirectiveWhitespaces="true" %>
<fmt:setLocale value="zh_CN"/>
<%-- 权限判断 --%>
<shield:permssion type="button">
<table class="tab-list shield-table-odd">
	<col width="60">
	<col width="100">
	<col width="">
	<col width="">
	<col width="">
	<col width="200">
	<col width="">
    <tr>
        <th>序号</th>
	    <th>用户标识</th>
	    <th>sessionId</th>
	    <th>客户端信息</th>
	    <th>客户端地址</th>
	    <th>登录时间</th>
        <th class="operate_icon">操作</th>
    </tr>
<c:forEach var="model" items="${list }" varStatus="var">
    <tr>
        <td style="text-align: center;">${var.count }</td>
        
	   	<td title="${model.uname }[${model.uid }]">${model.uname }</td>
	   	<td >${model.sessionId }</td>
	   	<td >${model.clientInfo }</td>
	   	<td >${model.client.remoteAddress }</td>
	   	<td class="shieldDatetime"><fmt:formatDate value="${model.lastLoginTime }" pattern="yyyy-MM-dd HH:mm:ss"/></td>
        <td>
        	<!-- href改为data-url -->
            <a data-url="${ctxPathA }/webnotice/socketio/show" shieldParams="{'id':'${model.uid }_${model.sessionId }'}" class="shieldDialog shield-icon show" viewTitle="客户端信息" data-icon-title="查看客户端信息"
               viewWidth="800"></a>
            <a data-url="${ctxPathA }/webnotice/socketio/tosendmsg" shieldParams="{'id':'${model.uid }_${model.sessionId }','uname':'${model.uname }'}" class="shieldDialog" viewTitle="发送信息" viewWidth="600">
            	<img src="${ctxPath }/images/icon/sendmsg.png" class="c_p" title="给客户端发送信息">   
            </a>
            <a data-url="${ctxPathA }/webnotice/socketio/disconn" shieldParams="{'id':'${model.uid }_${model.sessionId }'}" class="shieldAjax" viewTitle="是否断开此客户端的连接？">
            	<img src="${ctxPath }/images/icon/disconnect.png" class="c_p" title="断开客户端连接">   
            </a>
        </td>
    </tr>
</c:forEach>
<c:if test="${empty list }">
    <!-- 无数据时展示，有数据时展示上面的列表 -->
	<tr class="nodatatr_plugin">
        <td colspan="8" class="taCenter">暂无数据</td>
    </tr>
</c:if>
</table>
</shield:permssion>
<%@include file="/WEB-INF/view/a/include/pagination.jsp"%>